/*
 * @lc app=leetcode.cn id=1317 lang=javascript
 *
 * [1317] 将整数转换为两个无零整数的和
 */

// @lc code=start
const isNoZero = function (num) {
  while (num % 10 !== 0) {
    num = num / 10 >> 0;
  }
  return num === 0;
}
/**
 * @param {number} n
 * @return {number[]}
 */
var getNoZeroIntegers = function (n) {
  for (let i = 1; i < n; i++) {
    if (isNoZero(i) && isNoZero(n - i)) {
      return [i, n - i];
    }
  }
};
// @lc code=end

